#include<stdio.h>

#include"io.h"


void DisplayTransistor(Tran tran)
{
    printf("Number: %s\n", tran.number);
    switch(tran.type)
    {
    case NPN:
        printf("Type: NPN\n");
        break;
        
    case PNP:
        printf("Type: PNP\n");
        break;
    }
    switch(tran.caseStyle)
    {
    case TO18:
        printf("Case style: TO18\n");
        break;
        
    case TO92A:
        printf("Case style: TO92A\n");
        break;
        
    case TO92C:
        printf("Case style: TO92C\n");
        break;
         
    case TO220:
        printf("Case style: TO220\n");
        break;   
        
    case TO39:
        printf("Case style: TO39\n");
        break;
    }
    
    printf("pMax: %.3f\n", tran.pmax);
    printf("icMax: %.3f\n", tran.icmax);
}
